﻿<Window x:Class="AsyncProgressNotify.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:AsyncProgressNotify"
        Title="AsyncProgressNotify - Dynamic Properties Demo" Height="450" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Label Content="Tasks" Name="label1" Grid.Row="0" />
        <ListBox Name="listBox1" HorizontalContentAlignment="Stretch" VerticalAlignment="Stretch" Grid.Row="1">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100" />
                            <ColumnDefinition Width="150" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="{Binding Path=Name}" VerticalAlignment="Center"/>
                        <my:MyTaskProgress Grid.Column="1" Margin="2" />
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Content="Process tasks" HorizontalAlignment="Right" Name="btnProcess" Click="btnProcess_Click" />
    </Grid>
</Window>
